﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain.Entitys.Sinv
{
    /// <summary>
    /// 销售退货
    /// </summary>
    public class Sinv_Sale_Return
    {
        [Key]
        public int Sale_Return_Id { get; set; }//销售退货id
        public string? Sale_Return_Code { get; set; }//销售退货编号
        public string? Sale_Order_Name { get; set; }//销售订单名称
        public string? Sale_Order_Code { get; set; }//销售订单编号
        public string? Customer_Name { get; set; }//客户名称
        public string? Customer_Code { get; set; }//客户编号
        public string? Contacts_Name { get; set; }//联系人名称
        public string? Contacts_Phone { get; set; }//联系人电话
        public int Sale_Order_Rep_Id { get; set; }//销售负责人id
        public int Sale_Order_Dept_Id { get; set; }//销售负责人部门id
        public string? Sale_Return_Audit_By { get; set; }//销售退货审核人
        public DateTime? Sale_Return_Audit_Time { get; set; }//销售退货审核时间
        public char? Sale_Return_Audit_Status { get; set; }//审核状态
        public string? Sale_Return_Audit_Opinion { get; set; }//审核意见
        public string? Warehouse_Code { get; set; }//入库仓库id
        public string? Warehouse_Name { get; set; }//入库仓库名称
        public string? Zone_Code { get; set; }//入库库区id
        public string? Zone_Name { get; set; }//入库库区名称
        public string? Sale_Return_Reason { get; set; }//退货原因
        public int Sale_Return_Status { get; set; }//入库状态1：部分入库 2：全部入库
        public int Sale_Return_Rep_Id { get; set; }//入库员id
        public DateTime Sale_Return_Store_Time { get; set; }//入库时间
        public int Sale_Return_Dept_Id { get; set; }//入库部门id
        public string? Create_By { get; set; }//添加人
        public DateTime? Create_Time { get; set; }//添加时间
        public string? Update_By { get; set; }//修改人
        public DateTime? Update_Time { get; set; }//修改时间
        public char? Del_Flag { get; set; }//删除状态
        public ICollection<Sinv_Sale_Return_Details>? Details { get; set; }

    }
}
